package cn.itcast.annotation.ParsingBug;

import java.io.*;
import java.util.concurrent.BrokenBarrierException;

/**
 * @author Mc.Chai
 * @program: JavaWeb
 * @create 2021-12-07-19:27 19:27
 */
public class TestStream {
    public static void main(String[] args) throws IOException {
        BufferedWriter bufferedWriter=new BufferedWriter(new FileWriter("r.txt"));
        bufferedWriter.write("爱发牢骚快递费阿里打开房间啊啊的房间");
        bufferedWriter.flush();
        //缓冲字符输入流指定字符编码方式为“GBK”，跟.txt文件的字符编码相同
    }
}
